<?php
/**
 * 商户数据模型
 * Created by Sublime Text 3.
 * @authors Rejeo (rejeo@qq.com)
 * @date    2018-04-25 16:10:24
 */
namespace app\common\model;

use app\common\model\BaseModel;

class Bis extends BaseModel
{
    // 通过status来获取商家数据
    public function getBisByStatus($status=0)
    {
        $data = [
            // 'status' => ['>=',$status],
            'status' => $status,
        ];
        $order = [
            'id' => 'desc',
        ];
        $field = [
            'id','name','faren','faren_tel','status','create_time',
        ];
        $res = $this->where($data)->field($field)->paginate();
        return $res;
    }
}
